<?php/** * Created by PhpStorm. * User: jingshou * Date: 2017/9/17 * Time: 23:57 */namespace app\home\model;use think\Model;use think\Session;class Banner extends Model{    public function getList($num, $condition)    {        return self::where($condition)->order('id asc')->limit($num)->paginate(9);    }        public function getone($id){                return self::where(['id'=>$id])->limit(1)->find();    }}